<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	  xmlns:f="http://java.sun.com/jsf/core"
	  xmlns:h="http://java.sun.com/jsf/html"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:p="http://primefaces.org/ui">
	<h:head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
		<title><ui:insert name="titulo"/></title>
		<link rel="stylesheet" href="../../ESRestaurante/css/estilo.css" type="text/css" media="screen" />
	</h:head>
	
	<h:body>
		<f:loadBundle basename="br.com.esrestaurante.util.mensages" var="msgs"/>
		<div class="page">
			<h:form id="form" >
				<div class="espacoGrande">
				</div>
				<div id="blackline">
				</div>
		        <div id="menu">
					<div class="inlinePage">
						<div class="floatLeft">
							<img src="../../ESRestaurante/imagens/logo.png" alt="Logo" title="Logo" class="imgLogo" />
						</div>
						<div>
							<div class="nav white"> 

								<p:commandButton value="Principal" action="#{loginFaces.principalAction}" styleClass="botaoPequeno" ajax="false" />
								<p:commandButton value="Logoff" action="#{loginFaces.logout}" styleClass="botaoPequeno" ajax="false" />
								<div class="floatRight">
									<p:panel>
										<h:outputLabel value="Nome:" />
										<h:outputLabel value="#{faces.usuarioLogado.nome}" />
										<h:outputLabel value=" - " />
										<h:outputLabel value="Perfil:" />
										<h:outputLabel value="#{faces.usuarioLogado.perfil.nome}" />
									</p:panel>
								</div>
							</div>
							<div class="nav">
								<ui:insert name="comandos"/>
							</div>
						</div>
					</div>
				</div>
				<div id="espacoGrande">
				</div>
			  	<div class="inlinePage">
			  		<div class="espacoMedio">
					</div>
			  		<h2>
			  			<p:panel>
							<ui:insert name="titulopagina"/>
			  			</p:panel>
					</h2>
					<br/>
					<p:messages id="mensagensFaces" showDetail="true" autoUpdate="true" showSummary="true" />
					<div>
						<ui:insert name="conteudo"/>
					</div>
				</div>
			</h:form>
			<div class="espaco">
			</div>
			<div id="footer">
				<div class="inlinePage navigationbot">
					<p:outputPanel>©2012 Restaurante®, todos os direitos reservados.</p:outputPanel>
				</div>
			</div>
		</div>	
	</h:body>
</html>